package com.example.twoscroolview.view

import android.content.Context
import android.os.Build
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.annotation.RequiresApi
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout

class CustomSwipFreshView:SwipeRefreshLayout {
     constructor(context: Context): super(context) {
    }

    constructor(context: Context, attrs: AttributeSet?): super(context, attrs) {
    }

    fun init(){

    }

    override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean {
        System.out.println("onInterceptTouchEvent----${ev?.action}")
        if(ev?.action ==MotionEvent.ACTION_DOWN){
             super.onInterceptTouchEvent(ev)
            return false
        }
        return true
    }
}